/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package reportcenter.report.business;

import java.util.Collection;
import javax.persistence.EntityTransaction;
import reportcenter.support.dbutil.JPAFactory;
import reportcenter.report.dominio.column.ReportColum;

/**
 *
 * @author renan_luz
 */
public class ReportColumDao {

    public void deleteCollection(Collection<ReportColum> colums) {
//        EntityTransaction tx = JPAFactory.getInstance().getManager().getTransaction();
//        tx.begin();
        try {
            for(ReportColum colum : colums){
                JPAFactory.getInstance().getManager().remove(colum);
            }
            
//            tx.commit();
        } catch (Exception ex) {
            ex.printStackTrace();
//            tx.rollback();
        }
    }
}
